package constant;

import entity.ChatMessage;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class CommonConstant {

    /**
     * 消息缓存
     * 一级key：用户id
     * 二级key：pdf id 作为聊天空间
     * value：聊天记录
     */
    public static final Map<String,Map<String, List<ChatMessage>>> MSG_CACHE = new ConcurrentHashMap<>(16);

    /**
     * pdf内容缓存
     */
    public static final Map<String, String> PDF_CONTENT_CACHE = new ConcurrentHashMap<>(16);

}
